package com.jing.yao.component.constants;

/**
 * @author lirui
 * @since 2020-03-23
 */
public final class ResponseCode {

    /**
     * 成功响应码
     */
    public static final String SUCCESS_CODE = "200";

    /**
     * 成功响应信息
     */
    public static final String SUCCESS_MESSAGE = "操作成功";

    /**
     * 失败响应码
     */
    public static final String FAIL_CODE = "500";

    /**
     * 未查询到对象
     */
    public static final String ENTITY_NOT_FOUND = "1003";

    /**
     * JSON格式错误
     */
    public static final String JASON_PARSE_EXCEPTION = "1004";

    /**
     * 唯一索引约束
     */
    public static final String UNIQUE_KEY = "1005";

    /**
     * 失败响应信息
     */
    public static final String FAIL_MESSAGE = "操作失败";
}
